#!/usr/bin/ruby

require 'lib'

class Compiler < Gtk::Window

def run_cmds

  reset
  go 600, 300
  8.repeat {
  4.repeat {
  forward(55.to_i)
  turnright(30.to_i)
}
  7.repeat {
  forward(45.to_i)
  turnright(15.to_i)
}
  9.repeat {
  forward(38.to_i)
  turnright(10.to_i)
}
}
    end

end

Gtk.init
window = Compiler.new
Gtk.main